package entity;

import java.io.Serializable;

/**
 * @Author: Tiangle
 * @Date: 2021/9/11 15:42
 */
public class Manager implements Serializable {
    private int mid;
    private int logo;
    private String pwd;

    public Manager(int mid, int logo, String pwd) {
        this.mid = mid;
        this.logo = logo;
        this.pwd = pwd;
    }

    public Manager(int mid, String pwd) {
        this.mid = mid;
        this.pwd = pwd;
        this.logo = 1;
    }

    public int getMid() {
        return mid;
    }

    public void setMid(int mid) {
        this.mid = mid;
    }

    public int getLogo() {
        return logo;
    }

    public boolean login(String pwd){
        return pwd.equals(this.pwd);
    }


    public void setPwd(String pwd) {
        this.pwd = pwd;
    }
}
